import request from "@/utils/request";

export function listMenus(param) {
    return request({
        url:'/admin/menus',
        method:'get',
        params:param
    })
}

export function saveOrUpdateMenu(data){
    return request({
        url:'/admin/menus',
        method:'post',
        data:data
    })
}

export function deleteMenu(id) {
    return request({
        url:'/admin/menus/' + id,
        method:'delete'
    })
}
